package model

import (
	"github.com/jinzhu/gorm"
)

type Account struct {
	gorm.Model
	RoleId     int64 `sql:"type:varchar(20);index;not null"`
	Role       *Role
	UserName   string         `sql:"type:varchar(254);unique;not null"`
	Password   string `sql:"type:varchar(60)"`
	MetaAccountId string           `sql:"index"`
}
